package com.towery.dbsrcmanager.mybatis.base.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.towery.dbsrcmanager.es.entity.TDbObjectsEsVO;
import com.towery.dbsrcmanager.mybatis.base.entity.TDbObjectsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**数据库对象处理DAO
 * Created by User on 2017/1/3.
 */
public interface TDbObjectsDAO extends BaseMapper<TDbObjectsVO> {

    public List<TDbObjectsEsVO> getAll();
    /*添加新增对象到当前数据表*/
    public void  insertNewObjectsToCurrent(@Param("databaseid") String databaseid) throws Exception ;


    /*添加更新数据到当前表*/
    public void  updateObjectsToCurrent(@Param("databaseid") String databaseid) throws Exception ;

    /*添加删除标记数据到当前表-*/
    public void updateDeletedObjectsToCurrent(@Param("databaseid") String databaseid) throws Exception ;
	
	public TDbObjectsVO getObject(@Param("databaseid") String databaseid  
	
	,@Param("scema") String scema
	,@Param("type") String type
	,@Param("objectname") String objectname
	) throws Exception ;
}
